package com.cykj.shop.mapper;

import com.cykj.shop.domain.vo.BusinessVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BusinessMapper {
    //验证原密码是否正确（修改密码前）
    Integer isTruePassword(@Param("businessVo") BusinessVo businessVo);
    //商家修改密码
    Integer updatePassword(@Param("businessVo") BusinessVo businessVo);
    //商家注册账号
    Integer register(@Param("businessVo") BusinessVo businessVo);
    //判断手机号是否已被注册
    Integer isRegister(@Param("businessVo") BusinessVo businessVo);
    //商家修改头像
    Integer updateAvatar(@Param("id") Integer id, @Param("avatarUrl") String avatarUrl);
}
